{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genGroupStyle from './group';\nimport { genFocusStyle } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';\n// ============================== Shared ==============================\nconst genSharedButtonStyle = token => {\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  return {\n    [componentCls]: {\n      outline: 'none',\n      position: 'relative',\n      display: 'inline-block',\n      fontWeight: 400,\n      whiteSpace: 'nowrap',\n      textAlign: 'center',\n      backgroundImage: 'none',\n      backgroundColor: 'transparent',\n      border: `${token.lineWidth}px ${token.lineType} transparent`,\n      cursor: 'pointer',\n      transition: `all ${token.motionDurationMid} ${token.motionEaseInOut}`,\n      userSelect: 'none',\n      touchAction: 'manipulation',\n      lineHeight: token.lineHeight,\n      color: token.colorText,\n      '> span': {\n        display: 'inline-block'\n      },\n      // Leave a space between icon and text.\n      [`> ${iconCls} + span, > span + ${iconCls}`]: {\n        marginInlineStart: token.marginXS\n      },\n      '&:not(:disabled)': Object.assign({}, genFocusStyle(token)),\n      // make `btn-icon-only` not too narrow\n      '&-icon-only&-compact-item': {\n        flex: 'none'\n      },\n      // Special styles for Primary Button\n      [`&-compact-item${componentCls}-primary`]: {\n        '&:not([disabled]) + &:not([disabled])': {\n          position: 'relative',\n          '&:before': {\n            position: 'absolute',\n            top: -token.lineWidth,\n            insetInlineStart: -token.lineWidth,\n            display: 'inline-block',\n            width: token.lineWidth,\n            height: `calc(100% + ${token.lineWidth * 2}px)`,\n            backgroundColor: token.colorPrimaryHover,\n            content: '\"\"'\n          }\n        }\n      },\n      // Special styles for Primary Button\n      '&-compact-vertical-item': {\n        [`&${componentCls}-primary`]: {\n          '&:not([disabled]) + &:not([disabled])': {\n            position: 'relative',\n            '&:before': {\n              position: 'absolute',\n              top: -token.lineWidth,\n              insetInlineStart: -token.lineWidth,\n              display: 'inline-block',\n              width: `calc(100% + ${token.lineWidth * 2}px)`,\n              height: token.lineWidth,\n              backgroundColor: token.colorPrimaryHover,\n              content: '\"\"'\n            }\n          }\n        }\n      }\n    }\n  };\n};\nconst genHoverActiveButtonStyle = (hoverStyle, activeStyle) => ({\n  '&:not(:disabled)': {\n    '&:hover': hoverStyle,\n    '&:active': activeStyle\n  }\n});\n// ============================== Shape ===============================\nconst genCircleButtonStyle = token => ({\n  minWidth: token.controlHeight,\n  paddingInlineStart: 0,\n  paddingInlineEnd: 0,\n  borderRadius: '50%'\n});\nconst genRoundButtonStyle = token => ({\n  borderRadius: token.controlHeight,\n  paddingInlineStart: token.controlHeight / 2,\n  paddingInlineEnd: token.controlHeight / 2,\n  width: 'auto'\n});\n// =============================== Type ===============================\nconst genDisabledStyle = token => ({\n  cursor: 'not-allowed',\n  borderColor: token.colorBorder,\n  color: token.colorTextDisabled,\n  backgroundColor: token.colorBgContainerDisabled,\n  boxShadow: 'none'\n});\nconst genGhostButtonStyle = (btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled, hoverStyle, activeStyle) => ({\n  [`&${btnCls}-background-ghost`]: Object.assign(Object.assign({\n    color: textColor || undefined,\n    backgroundColor: 'transparent',\n    borderColor: borderColor || undefined,\n    boxShadow: 'none'\n  }, genHoverActiveButtonStyle(Object.assign({\n    backgroundColor: 'transparent'\n  }, hoverStyle), Object.assign({\n    backgroundColor: 'transparent'\n  }, activeStyle))), {\n    '&:disabled': {\n      cursor: 'not-allowed',\n      color: textColorDisabled || undefined,\n      borderColor: borderColorDisabled || undefined\n    }\n  })\n});\nconst genSolidDisabledButtonStyle = token => ({\n  '&:disabled': Object.assign({}, genDisabledStyle(token))\n});\nconst genSolidButtonStyle = token => Object.assign({}, genSolidDisabledButtonStyle(token));\nconst genPureDisabledButtonStyle = token => ({\n  '&:disabled': {\n    cursor: 'not-allowed',\n    color: token.colorTextDisabled\n  }\n});\n// Type: Default\nconst genDefaultButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n  backgroundColor: token.colorBgContainer,\n  borderColor: token.colorBorder,\n  boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlTmpOutline}`\n}), genHoverActiveButtonStyle({\n  color: token.colorPrimaryHover,\n  borderColor: token.colorPrimaryHover\n}, {\n  color: token.colorPrimaryActive,\n  borderColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n    color: token.colorError,\n    borderColor: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorBorderHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder)), genSolidDisabledButtonStyle(token))\n});\n// Type: Primary\nconst genPrimaryButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimary,\n  boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlOutline}`\n}), genHoverActiveButtonStyle({\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimaryHover\n}, {\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder, {\n  color: token.colorPrimaryHover,\n  borderColor: token.colorPrimaryHover\n}, {\n  color: token.colorPrimaryActive,\n  borderColor: token.colorPrimaryActive\n})), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n    backgroundColor: token.colorError,\n    boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.colorErrorOutline}`\n  }, genHoverActiveButtonStyle({\n    backgroundColor: token.colorErrorHover\n  }, {\n    backgroundColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder, {\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genSolidDisabledButtonStyle(token))\n});\n// Type: Dashed\nconst genDashedButtonStyle = token => Object.assign(Object.assign({}, genDefaultButtonStyle(token)), {\n  borderStyle: 'dashed'\n});\n// Type: Link\nconst genLinkButtonStyle = token => Object.assign(Object.assign(Object.assign({\n  color: token.colorLink\n}, genHoverActiveButtonStyle({\n  color: token.colorLinkHover\n}, {\n  color: token.colorLinkActive\n})), genPureDisabledButtonStyle(token)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n    color: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive\n  })), genPureDisabledButtonStyle(token))\n});\n// Type: Text\nconst genTextButtonStyle = token => Object.assign(Object.assign(Object.assign({}, genHoverActiveButtonStyle({\n  color: token.colorText,\n  backgroundColor: token.colorBgTextHover\n}, {\n  color: token.colorText,\n  backgroundColor: token.colorBgTextActive\n})), genPureDisabledButtonStyle(token)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n    color: token.colorError\n  }, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }, {\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }))\n});\n// Href and Disabled\nconst genDisabledButtonStyle = token => Object.assign(Object.assign({}, genDisabledStyle(token)), {\n  [`&${token.componentCls}:hover`]: Object.assign({}, genDisabledStyle(token))\n});\nconst genTypeButtonStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`${componentCls}-default`]: genDefaultButtonStyle(token),\n    [`${componentCls}-primary`]: genPrimaryButtonStyle(token),\n    [`${componentCls}-dashed`]: genDashedButtonStyle(token),\n    [`${componentCls}-link`]: genLinkButtonStyle(token),\n    [`${componentCls}-text`]: genTextButtonStyle(token),\n    [`${componentCls}-disabled`]: genDisabledButtonStyle(token)\n  };\n};\n// =============================== Size ===============================\nconst genSizeButtonStyle = function (token) {\n  let sizePrefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  const paddingVertical = Math.max(0, (token.controlHeight - token.fontSize * token.lineHeight) / 2 - token.lineWidth);\n  const paddingHorizontal = token.buttonPaddingHorizontal - token.lineWidth;\n  const iconOnlyCls = `${componentCls}-icon-only`;\n  return [\n  // Size\n  {\n    [`${componentCls}${sizePrefixCls}`]: {\n      fontSize: token.fontSize,\n      height: token.controlHeight,\n      padding: `${paddingVertical}px ${paddingHorizontal}px`,\n      borderRadius: token.borderRadius,\n      [`&${iconOnlyCls}`]: {\n        width: token.controlHeight,\n        paddingInlineStart: 0,\n        paddingInlineEnd: 0,\n        '> span': {\n          transform: 'scale(1.143)' // 14px -> 16px\n        }\n      },\n\n      // Loading\n      [`&${componentCls}-loading`]: {\n        opacity: token.opacityLoading,\n        cursor: 'default'\n      },\n      [`${componentCls}-loading-icon`]: {\n        transition: `width ${token.motionDurationSlow} ${token.motionEaseInOut}, opacity ${token.motionDurationSlow} ${token.motionEaseInOut}`\n      },\n      [`&:not(${iconOnlyCls}) ${componentCls}-loading-icon > ${iconCls}`]: {\n        marginInlineEnd: token.marginXS\n      }\n    }\n  },\n  // Shape - patch prefixCls again to override solid border radius style\n  {\n    [`${componentCls}${componentCls}-circle${sizePrefixCls}`]: genCircleButtonStyle(token)\n  }, {\n    [`${componentCls}${componentCls}-round${sizePrefixCls}`]: genRoundButtonStyle(token)\n  }];\n};\nconst genSizeBaseButtonStyle = token => genSizeButtonStyle(token);\nconst genSizeSmallButtonStyle = token => {\n  const smallToken = mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    padding: token.paddingXS,\n    buttonPaddingHorizontal: 8,\n    borderRadius: token.borderRadiusSM\n  });\n  return genSizeButtonStyle(smallToken, `${token.componentCls}-sm`);\n};\nconst genSizeLargeButtonStyle = token => {\n  const largeToken = mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  });\n  return genSizeButtonStyle(largeToken, `${token.componentCls}-lg`);\n};\nconst genBlockButtonStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: {\n      [`&${componentCls}-block`]: {\n        width: '100%'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Button', token => {\n  const {\n    controlTmpOutline,\n    paddingContentHorizontal\n  } = token;\n  const buttonToken = mergeToken(token, {\n    colorOutlineDefault: controlTmpOutline,\n    buttonPaddingHorizontal: paddingContentHorizontal\n  });\n  return [\n  // Shared\n  genSharedButtonStyle(buttonToken),\n  // Size\n  genSizeSmallButtonStyle(buttonToken), genSizeBaseButtonStyle(buttonToken), genSizeLargeButtonStyle(buttonToken),\n  // Block\n  genBlockButtonStyle(buttonToken),\n  // Group (type, ghost, danger, disabled, loading)\n  genTypeButtonStyle(buttonToken),\n  // Button Group\n  genGroupStyle(buttonToken),\n  // Space Compact\n  genCompactItemStyle(token, {\n    focus: false\n  }), genCompactItemVerticalStyle(token)];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genGroupStyle","genFocusStyle","genCompactItemStyle","genCompactItemVerticalStyle","genSharedButtonStyle","token","componentCls","iconCls","outline","position","display","fontWeight","whiteSpace","textAlign","backgroundImage","backgroundColor","border","lineWidth","lineType","cursor","transition","motionDurationMid","motionEaseInOut","userSelect","touchAction","lineHeight","color","colorText","marginInlineStart","marginXS","Object","assign","flex","top","insetInlineStart","width","height","colorPrimaryHover","content","genHoverActiveButtonStyle","hoverStyle","activeStyle","genCircleButtonStyle","minWidth","controlHeight","paddingInlineStart","paddingInlineEnd","borderRadius","genRoundButtonStyle","genDisabledStyle","borderColor","colorBorder","colorTextDisabled","colorBgContainerDisabled","boxShadow","genGhostButtonStyle","btnCls","textColor","textColorDisabled","borderColorDisabled","undefined","genSolidDisabledButtonStyle","genSolidButtonStyle","genPureDisabledButtonStyle","genDefaultButtonStyle","colorBgContainer","controlOutlineWidth","controlTmpOutline","colorPrimaryActive","colorError","colorErrorHover","colorErrorBorderHover","colorErrorActive","genPrimaryButtonStyle","colorTextLightSolid","colorPrimary","controlOutline","colorErrorOutline","genDashedButtonStyle","borderStyle","genLinkButtonStyle","colorLink","colorLinkHover","colorLinkActive","genTextButtonStyle","colorBgTextHover","colorBgTextActive","colorErrorBg","genDisabledButtonStyle","genTypeButtonStyle","genSizeButtonStyle","sizePrefixCls","arguments","length","paddingVertical","Math","max","fontSize","paddingHorizontal","buttonPaddingHorizontal","iconOnlyCls","padding","transform","opacity","opacityLoading","motionDurationSlow","marginInlineEnd","genSizeBaseButtonStyle","genSizeSmallButtonStyle","smallToken","controlHeightSM","paddingXS","borderRadiusSM","genSizeLargeButtonStyle","largeToken","controlHeightLG","fontSizeLG","borderRadiusLG","genBlockButtonStyle","paddingContentHorizontal","buttonToken","colorOutlineDefault","focus"],"sources":["/data/messenger.client/node_modules/antd/es/button/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genGroupStyle from './group';\nimport { genFocusStyle } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';\n// ============================== Shared ==============================\nconst genSharedButtonStyle = token => {\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  return {\n    [componentCls]: {\n      outline: 'none',\n      position: 'relative',\n      display: 'inline-block',\n      fontWeight: 400,\n      whiteSpace: 'nowrap',\n      textAlign: 'center',\n      backgroundImage: 'none',\n      backgroundColor: 'transparent',\n      border: `${token.lineWidth}px ${token.lineType} transparent`,\n      cursor: 'pointer',\n      transition: `all ${token.motionDurationMid} ${token.motionEaseInOut}`,\n      userSelect: 'none',\n      touchAction: 'manipulation',\n      lineHeight: token.lineHeight,\n      color: token.colorText,\n      '> span': {\n        display: 'inline-block'\n      },\n      // Leave a space between icon and text.\n      [`> ${iconCls} + span, > span + ${iconCls}`]: {\n        marginInlineStart: token.marginXS\n      },\n      '&:not(:disabled)': Object.assign({}, genFocusStyle(token)),\n      // make `btn-icon-only` not too narrow\n      '&-icon-only&-compact-item': {\n        flex: 'none'\n      },\n      // Special styles for Primary Button\n      [`&-compact-item${componentCls}-primary`]: {\n        '&:not([disabled]) + &:not([disabled])': {\n          position: 'relative',\n          '&:before': {\n            position: 'absolute',\n            top: -token.lineWidth,\n            insetInlineStart: -token.lineWidth,\n            display: 'inline-block',\n            width: token.lineWidth,\n            height: `calc(100% + ${token.lineWidth * 2}px)`,\n            backgroundColor: token.colorPrimaryHover,\n            content: '\"\"'\n          }\n        }\n      },\n      // Special styles for Primary Button\n      '&-compact-vertical-item': {\n        [`&${componentCls}-primary`]: {\n          '&:not([disabled]) + &:not([disabled])': {\n            position: 'relative',\n            '&:before': {\n              position: 'absolute',\n              top: -token.lineWidth,\n              insetInlineStart: -token.lineWidth,\n              display: 'inline-block',\n              width: `calc(100% + ${token.lineWidth * 2}px)`,\n              height: token.lineWidth,\n              backgroundColor: token.colorPrimaryHover,\n              content: '\"\"'\n            }\n          }\n        }\n      }\n    }\n  };\n};\nconst genHoverActiveButtonStyle = (hoverStyle, activeStyle) => ({\n  '&:not(:disabled)': {\n    '&:hover': hoverStyle,\n    '&:active': activeStyle\n  }\n});\n// ============================== Shape ===============================\nconst genCircleButtonStyle = token => ({\n  minWidth: token.controlHeight,\n  paddingInlineStart: 0,\n  paddingInlineEnd: 0,\n  borderRadius: '50%'\n});\nconst genRoundButtonStyle = token => ({\n  borderRadius: token.controlHeight,\n  paddingInlineStart: token.controlHeight / 2,\n  paddingInlineEnd: token.controlHeight / 2,\n  width: 'auto'\n});\n// =============================== Type ===============================\nconst genDisabledStyle = token => ({\n  cursor: 'not-allowed',\n  borderColor: token.colorBorder,\n  color: token.colorTextDisabled,\n  backgroundColor: token.colorBgContainerDisabled,\n  boxShadow: 'none'\n});\nconst genGhostButtonStyle = (btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled, hoverStyle, activeStyle) => ({\n  [`&${btnCls}-background-ghost`]: Object.assign(Object.assign({\n    color: textColor || undefined,\n    backgroundColor: 'transparent',\n    borderColor: borderColor || undefined,\n    boxShadow: 'none'\n  }, genHoverActiveButtonStyle(Object.assign({\n    backgroundColor: 'transparent'\n  }, hoverStyle), Object.assign({\n    backgroundColor: 'transparent'\n  }, activeStyle))), {\n    '&:disabled': {\n      cursor: 'not-allowed',\n      color: textColorDisabled || undefined,\n      borderColor: borderColorDisabled || undefined\n    }\n  })\n});\nconst genSolidDisabledButtonStyle = token => ({\n  '&:disabled': Object.assign({}, genDisabledStyle(token))\n});\nconst genSolidButtonStyle = token => Object.assign({}, genSolidDisabledButtonStyle(token));\nconst genPureDisabledButtonStyle = token => ({\n  '&:disabled': {\n    cursor: 'not-allowed',\n    color: token.colorTextDisabled\n  }\n});\n// Type: Default\nconst genDefaultButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n  backgroundColor: token.colorBgContainer,\n  borderColor: token.colorBorder,\n  boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlTmpOutline}`\n}), genHoverActiveButtonStyle({\n  color: token.colorPrimaryHover,\n  borderColor: token.colorPrimaryHover\n}, {\n  color: token.colorPrimaryActive,\n  borderColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n    color: token.colorError,\n    borderColor: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorBorderHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder)), genSolidDisabledButtonStyle(token))\n});\n// Type: Primary\nconst genPrimaryButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimary,\n  boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlOutline}`\n}), genHoverActiveButtonStyle({\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimaryHover\n}, {\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder, {\n  color: token.colorPrimaryHover,\n  borderColor: token.colorPrimaryHover\n}, {\n  color: token.colorPrimaryActive,\n  borderColor: token.colorPrimaryActive\n})), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n    backgroundColor: token.colorError,\n    boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.colorErrorOutline}`\n  }, genHoverActiveButtonStyle({\n    backgroundColor: token.colorErrorHover\n  }, {\n    backgroundColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder, {\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genSolidDisabledButtonStyle(token))\n});\n// Type: Dashed\nconst genDashedButtonStyle = token => Object.assign(Object.assign({}, genDefaultButtonStyle(token)), {\n  borderStyle: 'dashed'\n});\n// Type: Link\nconst genLinkButtonStyle = token => Object.assign(Object.assign(Object.assign({\n  color: token.colorLink\n}, genHoverActiveButtonStyle({\n  color: token.colorLinkHover\n}, {\n  color: token.colorLinkActive\n})), genPureDisabledButtonStyle(token)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n    color: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive\n  })), genPureDisabledButtonStyle(token))\n});\n// Type: Text\nconst genTextButtonStyle = token => Object.assign(Object.assign(Object.assign({}, genHoverActiveButtonStyle({\n  color: token.colorText,\n  backgroundColor: token.colorBgTextHover\n}, {\n  color: token.colorText,\n  backgroundColor: token.colorBgTextActive\n})), genPureDisabledButtonStyle(token)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n    color: token.colorError\n  }, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }, {\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }))\n});\n// Href and Disabled\nconst genDisabledButtonStyle = token => Object.assign(Object.assign({}, genDisabledStyle(token)), {\n  [`&${token.componentCls}:hover`]: Object.assign({}, genDisabledStyle(token))\n});\nconst genTypeButtonStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`${componentCls}-default`]: genDefaultButtonStyle(token),\n    [`${componentCls}-primary`]: genPrimaryButtonStyle(token),\n    [`${componentCls}-dashed`]: genDashedButtonStyle(token),\n    [`${componentCls}-link`]: genLinkButtonStyle(token),\n    [`${componentCls}-text`]: genTextButtonStyle(token),\n    [`${componentCls}-disabled`]: genDisabledButtonStyle(token)\n  };\n};\n// =============================== Size ===============================\nconst genSizeButtonStyle = function (token) {\n  let sizePrefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  const paddingVertical = Math.max(0, (token.controlHeight - token.fontSize * token.lineHeight) / 2 - token.lineWidth);\n  const paddingHorizontal = token.buttonPaddingHorizontal - token.lineWidth;\n  const iconOnlyCls = `${componentCls}-icon-only`;\n  return [\n  // Size\n  {\n    [`${componentCls}${sizePrefixCls}`]: {\n      fontSize: token.fontSize,\n      height: token.controlHeight,\n      padding: `${paddingVertical}px ${paddingHorizontal}px`,\n      borderRadius: token.borderRadius,\n      [`&${iconOnlyCls}`]: {\n        width: token.controlHeight,\n        paddingInlineStart: 0,\n        paddingInlineEnd: 0,\n        '> span': {\n          transform: 'scale(1.143)' // 14px -> 16px\n        }\n      },\n\n      // Loading\n      [`&${componentCls}-loading`]: {\n        opacity: token.opacityLoading,\n        cursor: 'default'\n      },\n      [`${componentCls}-loading-icon`]: {\n        transition: `width ${token.motionDurationSlow} ${token.motionEaseInOut}, opacity ${token.motionDurationSlow} ${token.motionEaseInOut}`\n      },\n      [`&:not(${iconOnlyCls}) ${componentCls}-loading-icon > ${iconCls}`]: {\n        marginInlineEnd: token.marginXS\n      }\n    }\n  },\n  // Shape - patch prefixCls again to override solid border radius style\n  {\n    [`${componentCls}${componentCls}-circle${sizePrefixCls}`]: genCircleButtonStyle(token)\n  }, {\n    [`${componentCls}${componentCls}-round${sizePrefixCls}`]: genRoundButtonStyle(token)\n  }];\n};\nconst genSizeBaseButtonStyle = token => genSizeButtonStyle(token);\nconst genSizeSmallButtonStyle = token => {\n  const smallToken = mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    padding: token.paddingXS,\n    buttonPaddingHorizontal: 8,\n    borderRadius: token.borderRadiusSM\n  });\n  return genSizeButtonStyle(smallToken, `${token.componentCls}-sm`);\n};\nconst genSizeLargeButtonStyle = token => {\n  const largeToken = mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  });\n  return genSizeButtonStyle(largeToken, `${token.componentCls}-lg`);\n};\nconst genBlockButtonStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: {\n      [`&${componentCls}-block`]: {\n        width: '100%'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Button', token => {\n  const {\n    controlTmpOutline,\n    paddingContentHorizontal\n  } = token;\n  const buttonToken = mergeToken(token, {\n    colorOutlineDefault: controlTmpOutline,\n    buttonPaddingHorizontal: paddingContentHorizontal\n  });\n  return [\n  // Shared\n  genSharedButtonStyle(buttonToken),\n  // Size\n  genSizeSmallButtonStyle(buttonToken), genSizeBaseButtonStyle(buttonToken), genSizeLargeButtonStyle(buttonToken),\n  // Block\n  genBlockButtonStyle(buttonToken),\n  // Group (type, ghost, danger, disabled, loading)\n  genTypeButtonStyle(buttonToken),\n  // Button Group\n  genGroupStyle(buttonToken),\n  // Space Compact\n  genCompactItemStyle(token, {\n    focus: false\n  }), genCompactItemVerticalStyle(token)];\n});"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,aAAa,MAAM,SAAS;AACnC,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,2BAA2B,QAAQ,mCAAmC;AAC/E;AACA,MAAMC,oBAAoB,GAAGC,KAAK,IAAI;EACpC,MAAM;IACJC,YAAY;IACZC;EACF,CAAC,GAAGF,KAAK;EACT,OAAO;IACL,CAACC,YAAY,GAAG;MACdE,OAAO,EAAE,MAAM;MACfC,QAAQ,EAAE,UAAU;MACpBC,OAAO,EAAE,cAAc;MACvBC,UAAU,EAAE,GAAG;MACfC,UAAU,EAAE,QAAQ;MACpBC,SAAS,EAAE,QAAQ;MACnBC,eAAe,EAAE,MAAM;MACvBC,eAAe,EAAE,aAAa;MAC9BC,MAAM,EAAG,GAAEX,KAAK,CAACY,SAAU,MAAKZ,KAAK,CAACa,QAAS,cAAa;MAC5DC,MAAM,EAAE,SAAS;MACjBC,UAAU,EAAG,OAAMf,KAAK,CAACgB,iBAAkB,IAAGhB,KAAK,CAACiB,eAAgB,EAAC;MACrEC,UAAU,EAAE,MAAM;MAClBC,WAAW,EAAE,cAAc;MAC3BC,UAAU,EAAEpB,KAAK,CAACoB,UAAU;MAC5BC,KAAK,EAAErB,KAAK,CAACsB,SAAS;MACtB,QAAQ,EAAE;QACRjB,OAAO,EAAE;MACX,CAAC;MACD;MACA,CAAE,KAAIH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